package com.an.blog.web.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.an.blog.service.IBlogTalkService;
import com.an.blog.web.domain.vo.BlogTalkWebVo;
import com.an.common.core.domain.PageQuery;
import com.an.common.core.page.TableDataInfo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 博客讨论web控制器
 *
 * @author: Ann
 * @createDate: 2023/08/16 10:46:59
 * @version: 1.0.0
 */
@RestController
@RequestMapping("/blog-web/talk")
@RequiredArgsConstructor
public class BlogTalkWebController {

    private final IBlogTalkService blogTalkService;


    /**
     * 查询说说网络列表
     *
     * @param pageQuery 页面查询
     * @return {@link TableDataInfo }<{@link BlogTalkWebVo }>
     * @author: Ann
     * @createDate: 2023/08/16 10:53:16
     * @version: 1.0.0
     */
    @SaIgnore
    @GetMapping("/list")
    public TableDataInfo<BlogTalkWebVo> queryTalkWebList(PageQuery pageQuery) {
        return blogTalkService.queryTalkWebList(pageQuery);
    }
}
